import { BrowserRouter } from "react-router-dom";
import AuthRouter from "@/router/authRouter";
import Router from "./router";
import { AliveScope } from "react-activation";
import { ConfigProvider } from "antd";
import useTheme from "./hooks/useTheme";
const App = () => {
	
	// 全局使用主题
	useTheme();

	return (
		<BrowserRouter>
			<AliveScope>
				<ConfigProvider theme={useTheme().theme}>
					<AuthRouter>
						<Router></Router>
					</AuthRouter>
				</ConfigProvider>
			</AliveScope>
		</BrowserRouter>
	);
};

export default App;
